/* 后台布局 */
.admin-body {
    display: flex;
    min-height: 100vh;
    margin: 0;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
}

.admin-logo {
    padding: 0 20px;
    margin-bottom: 30px;
}

.admin-logo a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #34495e;
}

.admin-main {
    flex: 1;
    background: #f5f5f5;
}

.admin-header {
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.admin-breadcrumb {
    font-size: 20px;
    font-weight: bold;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-content {
    padding: 20px;
}

/* 数据统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007AFF;
    margin-top: 10px;
}

/* 快捷操作 */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
}

/* 表格样式 */
.admin-table {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* 按钮样式 */
.btn-primary {
    background: #007AFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-small {
    margin-bottom: 2px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: #007AFF;
    color: #fff;
    margin-right: 5px;
}

.lookbtn{
    text-align: center;
    display: block;
}

.btn-danger {
    background: #dc3545;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 500px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    text-align: right;
    margin-top: 20px;
}

.form-actions button {
    margin-bottom: 10px;
}

/* 最近活动样式 */
.recent-activities {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.activity-list {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-content {
    flex: 1;
}

.activity-time {
    color: #999;
    font-size: 14px;
}

/* 情侣管理样式 */
.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

.visibility-select,
.likes-input {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80px;
}

.likes-input {
    text-align: center;
}

.visibility-select:focus,
.likes-input:focus {
    border-color: #007AFF;
    outline: none;
}

/* 仪表盘统计卡片 */
.dashboard-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 30px 0;
    flex-wrap: nowrap;
}

.stat-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    min-width: 200px;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 32px;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    color: #666;
    font-size: 16px;
    margin: 0 0 8px 0;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 活动列表样式 */
.dashboard-activities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.activity-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.activity-item:hover {
    background: #f0f2f5;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.username {
    font-weight: 600;
    color: #007AFF;
}

.time {
    color: #999;
    font-size: 14px;
}

.activity-body {
    color: #666;
    line-height: 1.5;
}

.highlight {
    color: #007AFF;
    text-decoration: none;
}

.highlight:hover {
    text-decoration: underline;
}

.comment-content {
    margin-top: 8px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    color: #333;
}

/* 在现有样式基础上添加 */
.modal textarea {
    width: 100%;
    min-height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}
.btn{
    background: #dc3545;
}
.btn-primary {
    background: #007AFF;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0056b3;
}

/* 添加加载遮罩样式 */
.loading-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: white;
    padding: 20px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 